Skip to content

Conversation

oliveror
Copy link
Member

Changes

Following the team review, GraphiQL stays available, but the choice is now explicit and documented instead of accidental:

  • GraphiQL is on by default; API_GRAPHIQL=false turns it off (apps/api/src/app.ts). Production behaviour is unchanged.
  • README section GraphiQL explains why it is available: reviewers can explore the schema and try queries, and it grants no extra access — every resolver enforces authentication, ownership and visibility, and POST requests need the same X-Requested-With header as the client.
  • .env.example and docs/operations.md document the variable.
  • New tests: GraphiQL is served by default and not served when API_GRAPHIQL=false.

(The first commit made it opt-in; the second reverses the default after review. The net diff is the behaviour above.)

Validation

  • npm run check passes (213 unit tests).

Remaining work

  • None.

AI usage

Written with Claude Code (Anthropic) during the final-delivery review, adjusted after a teammate's review comment. Please review the diff as you would any other contribution.

Closes #84

The deployed API served an interactive GraphiQL editor to anyone. Make it
opt-in: .env.example and the Docker dev setup enable it, while the VM
(which does not set the variable) turns it off on the next deploy without
any server change.

Closes #84
Following team review: GraphiQL is useful for reviewers exploring the API
and grants no extra access (resolvers enforce auth, ownership and
visibility; POSTs need the CSRF header). It is now on unless
API_GRAPHIQL=false, and the README explains the choice.

Closes #84
@oliveror oliveror requested a review from a team as a code owner November 16, 2026 13:55
@olestan olestan merged commit 008c5b4 into dev Nov 16, 2026
2 checks passed
@olestan olestan deleted the chore/api-graphiql-production branch November 16, 2026 15:10
Sign in to join this conversation on GitHub.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants